package com.kid.keep.enums;

import com.honeybee.cloud.framework.base.exception.ExceptionEnum;
import lombok.Getter;

/**
 * @Description 异常enums
 * @Author DELL
 * @Create 2019-12-08
 * @Since 1.0.0
 */
public enum CommonExceptionEnum {
    HEADER(1, "头部参数类型不正确");
    @Getter
    private Integer parentCode = ExceptionEnum.VALIDATION_EXCEPTION.getCode();
    @Getter
    private Integer subCode;
    @Getter
    private String message;


    CommonExceptionEnum(Integer subCode, String message) {
        this.subCode = subCode;
        this.message = message;
    }

    public  String getParentMessage() {
        return ExceptionEnum.VALIDATION_EXCEPTION.getRemark();
    }
}
